package spring;

/**
 * @ProjectName: Spring
 * @Package: spring
 * @ClassName: BeanDefinition
 * @Author: zxh
 * @Description: 类的描述信息
 * @Date: 2022/3/10 14:15
 * @Version: 1.0
 */
public class BeanDefinition {

    private Class clazz;

    private String scope;

    public BeanDefinition(Class clazz, String scope) {
        this.clazz = clazz;
        this.scope = scope;
    }

    public BeanDefinition() {
    }

    public Class getClazz() {
        return clazz;
    }

    public void setClazz(Class clazz) {
        this.clazz = clazz;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    public boolean isSingleton(){
        return scope.equals("singleton");
    }

    public boolean isPrototype(){
        return scope.equals("prototype");
    }
}
